package com.sdhs.paas.authserver.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.sdhs.paas.authserver.entity.UserInfo;
import com.sdhs.paas.authserver.service.UserService;
import com.sdhs.paas.authserver.util.user.JwtAuthenticationRequest;

@Service
public class UserServiceImpl implements UserService	{

	@Override
	public UserInfo validate(JwtAuthenticationRequest authenticationRequest) {
		UserInfo userInfo =new UserInfo();
		userInfo.setName("admin");
		userInfo.setUsername("admin");
		userInfo.setPassword("admin");
		userInfo.setId("123");
		return userInfo;
	}

	@Override
	public List<String> getRolesByUserId(String userId) {
		List<String> roleList = new ArrayList<String>();
		roleList.add("admin");
		return roleList;
	}

}
